package com.fay.designPattern.reflector;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/3/21 17:32
 * @Version 1.0
 */
public class TextTest {
    public void testToNumber() {
        Text text = new Text("123");
        Assert.assertEquals(123, text.toNumber());
    }

    public void testToNumber_nullOrEmpty() {
        Text text1 = new Text(null);
        Assert.assertNull(text1.toNumber());
    }
}
